home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / comms_w / inetv21.zip / DIALPARM.H_ / DIALPARM.H
C/C++ Source or Header  |  1995-01-11  |  1KB  |  38 lines

  1. #ifndef    DIALPARM_H
  2. #define    DIALPARM_H
  3. typedef struct {
  4.     int    port;    // 0=COM1, 1=COM2 etc.
  5.     BOOL    xonxoff;    // software flowcontrol, TRUE=xonxoff used
  6.     BOOL    directconnect;    // TRUE=connected via null modem
  7.     unsigned char    bytesize;    // 6,7 or 8
  8.     unsigned char    flowctrl;    // hardware flowcontrol (see below)
  9.     unsigned char    parity;        // parity value (see below)
  10.     unsigned char    stopbits;    // number of stop bits (see below)
  11.     WORD    baudrate;    // baudrate coded as CBR_xxxx (see windows.h)
  12. } DIALPARM;
  13. typedef DIALPARM FAR *LPDIALPARM;
  14.  
  15. // Flow control flags (to be set in flowctrl)
  16.  
  17. #define FC_DTRDSR       0x01
  18. #define FC_RTSCTS       0x02
  19. #define FC_XONXOFF      0x04
  20.  
  21. // Parity values (as defined in windows.h)
  22. //    NOPARITY    (0)
  23. //    ODDPARITY    (1)
  24. //    EVENPARITY    (2)
  25. //    MARKPARITY    (3)
  26. //    SPACEPARITY    (4)
  27.  
  28. // Stopbits values (as defined in windows.h)
  29. //    ONESTOPBIT    (0)
  30. //    ONE5STOPBITS    (1)
  31. //    TWOSTOPBITS    (2)
  32.  
  33. // Stack interface routine
  34. int FAR PASCAL WSADialerSetPortInfo(LPDIALPARM ParmAddr,int InterfaceIndex);
  35.  
  36. #endif
  37.  
  38.